﻿using Dyao.Book.Contract;

namespace Dyao.Book.Application.Abstractions
{
    public interface ITaskCenterRecordLogApplication
    {
        /// <summary>
        /// 添加记录日志
        /// </summary>
        /// <param name="recordLogModel">recordLogModel</param>
        /// <param name="cancellationToken">cancellationToken</param>
        /// <returns></returns>
        Task<bool> PostTaskCenterRecordLogAsync(TaskCenterRecordLogDto recordLogModel, CancellationToken cancellationToken = default);

        /// <summary>
        /// 批量添加记录日志
        /// </summary>
        /// <param name="logs"></param>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        Task InsertAsync(IEnumerable<TaskCenterRecordLogDto> logs, CancellationToken cancellationToken = default);
    }
}
